package Function;

public class Function3 extends Function{

	public Function3(){
		// x e [0,25]
		xmin = 0;
		xmax = 25;
	}
	
	public double evaluate(double[] parameters) {
		// f(x) = senx / (1 + sqrt(x) + cosx / (1+x))
		double x = parameters[0];
		double denominator = 1 + Math.sqrt(x) + (Math.cos(x) / (1 + x));
		return Math.sin(x) / denominator;
	}

}
